package com.ruoyi.canteen.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品规格对象 canteen_cp_special
 * 
 * @author ruoyi
 * @date 2021-09-10
 */
public class CanteenCpSpecial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 菜品id */
    @Excel(name = "菜品id")
    private Long cpId;

    public String getCpSpecs() {
        return cpSpecs;
    }

    public void setCpSpecs(String cpSpecs) {
        this.cpSpecs = cpSpecs;
    }

    /** 规格id */
    @Excel(name = "规格id")
    private Long specId;

    //菜品规格列表
    private String cpSpecs;

    // 库存模式（无库存0或空，有库存1）
    private Integer storageModel;

    private CanteenCp canteenCp;


    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 是否每天自动清理库存 */
    @Excel(name = "是否每天自动清理库存")
    private Long isAuto;


    public CanteenCp getCanteenCp() {
        return canteenCp;
    }

    public void setCanteenCp(CanteenCp canteenCp) {
        this.canteenCp = canteenCp;
    }


    public Integer getStorageModel() {
        return storageModel;
    }

    public void setStorageModel(Integer storageModel) {
        this.storageModel = storageModel;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCpId(Long cpId) 
    {
        this.cpId = cpId;
    }

    public Long getCpId() 
    {
        return cpId;
    }
    public void setSpecId(Long specId) 
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setIsAuto(Long isAuto) 
    {
        this.isAuto = isAuto;
    }

    public Long getIsAuto() 
    {
        return isAuto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cpId", getCpId())
            .append("specId", getSpecId())
            .append("price", getPrice())
            .append("stock", getStock())
            .append("isAuto", getIsAuto())
            .toString();
    }
}
